package com.woniuxy.lab.woniu_lab_boss.exception;

public enum WebExceptionCode {

    USER_IS_NOT_EXISTS(1001, "用户不存在"),

    TEACHER_IS_NOT_EXISTS(1002, "讲师不存在"),

    ADMIN_IS_NOT_EXISTS(1003, "管理员不存在"),

    USERNAME_IS_EXISTS(1004, "账号已存在"),

    STATUS_IS_WRONG(1005, "用户状态错误"),

    TEACHER_HAVE_NO_RIGHT_TO_THIS_RANGE(1006, "你只能修改自己的靶场"),

    RANGE_IS_NOT_EXISTS(1007, "靶场不存在"),

    PASSWORD_IS_WRONG(1008, "密码错误"),

    PORT_IS_EXISTS(1009, "端口已存在"),

    FILE_UPLOAD_FAILED(1010, "文件上传失败"),

    LOGIN_FAIL(1011, "登录失败"),

    ACCOUNT_IS_NOT_EXISTS(1012, "账号不存在"),

    TEACHER_STATUS_EXCEPTION(1013, "请用讲师账号登录"),

    DATA_ERROR(1014, "数据有误"),

    PATH_FORMAT_ERROR(1015, "路径格式不正确"),

    NOT_LOGIN(1016, "未登录"),

    IMAGE_IS_EXISTS(1017, "镜像已存在"),

    IMAGE_IS_NOT_EXISTS(1018, "镜像不存在"),

    PARENT_IMAGE_IS_NOT_EXISTS(1019, "父基础镜像不存在"),

    PARENT_IMAGE_IS_NOT_PARENT(1020, "传入父镜像ID不是父镜像"),

    JWT_EXPIRED(4000, "登录已过期"),

    FILE_TYPE_INCORRECT(1019, "靶场类型关键字不符合要求 只能是[other/docker/war/zip]"),

    DOCKER_FILE_TYPE_INCORRECT(1020, "docker文件只能以.tar结尾"),

    WAR_ZIP_FILE_TYPE_INCORRECT(1021, "war文件只能以.zip文件形式上传"),

    PHP_ZIP_FILE_TYPE_INCORRECT(1021, "php文件只能以.zip文件形式上传"),

    ADMIN_STATUS_EXCEPTION(1022,"你不是管理员，无法操作"),

    YOU_DO_NOT_HAVE_THIS_POWER(1023, "你无权进行管理员新增"),

    FILE_IS_NOT_EXISTS(1024, "文件不存在"),

    NEWPASSWORD_IS_ALREADY_OLDPASSWORD(1025,"新密码与旧密码相同"),



    ;


    Integer code;
    String message;

    WebExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
